<%@ page session="true"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page isELIgnored="false" %>

<%@page import="java.util.Date;"%>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
<script type="text/javascript">

function showBooks(){
	var url = "<%=request.getContextPath()%>/listAuthorBooks.htm"
	new Ajax.Updater('books_list', url, 
		{ method: 'get', 
		  parameters: {
		  		authorId: <c:out value="${author.id}"/>
		  }
		});
	
}
</script>
       id <c:out value="${author.id}"/><br>
        name <c:out value="${author.name}"/><br>
        surname <c:out value="${author.surname}"/><br>
            
            <a href="javascript:showBooks()">display books - with prototype dynamic updater</a>    
      	<div id="books_list"></div>
        <div><c:if test="${err != null}">
                <c:out value="${err}" />
        </c:if></div>
        
        2 rodzaje dodawania 1 formularzem 
        1 ajaxem, 
        listing za pomoca tabelki beanform - do edycji
        
    </body>
</html>
